import string
from django.core.mail import send_mail


def sendEmail(email, code):
    verify_string = string.ascii_letters + string.digits
    re = send_mail("验证码", code, "hehecat@foxmail.com", [email], fail_silently=False)
    return re
